Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

289
Views
Javascript remove Ampersand "&" from the url and go the new url at the same time

I have seen examples on how to remove &amp and replace with & in the url in Javascript. However, I don't get how to replace characters in the url and then use the url at the same time. Javascript is not my strong suit so please forgive me. I have tried the following below and it took me to http://flowline/&amp. What am I doing wrong? How do I achieve my end result in Javascript?

   window.location = '/index.php?name=raider&do=see&ext=account&action=processed';
   window.location.replace('&','&')
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Put it into a variable first:

let url = '/index.php?name=raider&do=see&ext=account&action=processed';
window.location = url.replaceAll("&", "&");
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!